To help you manage operational software upgrades and configurations, the IBM 2212 has a software change management feature. This utility enables you to determine which operational software file and configuration file are active while the IBM 2212 is running. It also has a service recovery interface that enables you to perform many of the same tasks.
Reconfiguring
You might find it difficult to detect problems caused by configuration errors. A configuration error can initially appear to be a hardware problem because the 2212 will not start or data will not flow through a port. In addition, problems with configuration may not result in an error initially; an error may occur only when specific conditions are encountered or when heavy network traffic occurs.
If you cannot resolve a problem after making a few changes to your configuration or after restoring the active configuration file, it is recommended that you generate a new configuration. Too many changes to a configuration often compound the problem, whereas you can usually generate and test a new configuration within a few hours.
Boot config> copy config Copy FROM Bank number? A Copy FROM Config number? 1 Copy TO Bank number? B Copy TO Config number? 1
You will be prompted for the source bank (A or B) and the source configuration file. These locations are the destination bank and the configuration you specified in the step 2b.
To display information on a configuration file loaded on the IBM 2212, access the Boot config> prompt or the SVC> prompt, and then type list. For each configuration file that is loaded, its bank, internal location (for example, CONFIG 1), version, and level is displayed.
The copy command allows you to copy a load image or configuration file from one location on the hard drive or compact flash to another. This command allows you to change the status as well. The file that you copy always receives the status of the storage area that it is copied to.
From the OPCON (*) prompt:
Boot config> copy config Copy FROM Bank number? A Copy FROM Config number? 1 Copy TO Bank number? B Copy TO Config number? 1
To copy a load image, at the Boot config> prompt, type copy load. You will be prompted for the source bank (A or B) and destination bank (A or B).
From the SVC> prompt:
+--------------------------------------------------------------------------------+ | | |svc>copy | | BankA ---+--------- Description ----------+------ Date -------+ | || IMAGE - PENDING | | 10 Feb 1998 17:46 | | || CONFIG 1 - AVAIL | | 10 Feb 1998 17:46 | | || CONFIG 2 - AVAIL | | 09 Jan 1998 10:40 | | || CONFIG 3 - AVAIL | | 06 Jan 1998 15:46 | | || CONFIG 4 - PENDING * | | 02 Jan 1998 11:51 | | |+------ BankB -----------+--Description ----------+------ Date -------+ | || IMAGE - AVAIL | | 14 Feb 1998 15:38 | | || CONFIG 1 - AVAIL * | | 03 Feb 1998 14:43 | | || CONFIG 2 - AVAIL | | 22 Jan 1998 13:43 | | || CONFIG 3 - AVAIL | | 06 Jan 1998 17:25 | | || CONFIG 4 - AVAIL | | 26 Jun 1998 09:48 | | | | |Load or Config? c | |Enter source bank : a | |Enter source config <1-4>: 3 | |Enter destination bank : b | |Enter destination config <1-4>: 3 | |/hd0/sys0/CONFIG2 --> /hd0/sys1/CONFIG2 | |Copy configuration commmand successful! | | | | | +--------------------------------------------------------------------------------+
If you copy an image, the same rules apply except that image files can be copied only from bank to bank. These steps describe how the copy of an image affects the image that was previously in the bank:
To erase a file, at the Boot config> prompt or the SVC> prompt, type erase and press Enter, and then follow the prompts.
If you select a file to erase with a status of CORRUPT or NONE, the erase option is discontinued.
Note that the following rules apply to erasing files from the IBM 2212:
In this case, the workstation must be running TCP/IP and the communications feature of the configuration program is used to establish direct communications between the configuration program and the IBM 2212. When you use the Send option of the configuration program's communications feature, the configuration data is sent to the IBM 2212 using SNMP packets. After all of the configuration data has been sent, you can use the communication feature's restart router option. This causes the IBM 2212 software to be reloaded and initialized using the new configuration data immediately. Alternately, you can use the communication feature's timed config option to set a time when the IBM 2212 will be reloaded with the new configuration.
To access the SVC> prompt, use the procedure described on page Accessing the Service Recovery Prompt (SVC>).
Note: | You transfer the files to banks within the IBM 2212. The banks represent the directories that have been created automatically; you do not have to be concerned about transferring the files to a particular directory within the IBM 2212. |
You cannot overwrite a currently active bank image or configuration file.
The following example shows a software code load:
* talk 6 Config> boot Boot config>tftp get load mod Boot config>tftp get load mod +------ BankA -----------+--------- Description ----------+------ Date -------+ | IMAGE - AVAIL | | 10 Aug 1998 16:03 | | CONFIG 1 - AVAIL * | cc_158e | 10 Aug 1998 16:06 | | CONFIG 2 - NONE | | 10 Aug 1998 16:49 | | CONFIG 3 - NONE | | | | CONFIG 4 - NONE | | | +------ BankB -----------+--------- Description ----------+------ Date -------+ | IMAGE - ACTIVE | | 10 Aug 1998 13:23 | | CONFIG 1 - AVAIL | cc_158e | 10 Aug 1998 13:23 | | CONFIG 2 - ACTIVE * | cc_158e | 11 Aug 1998 10:21 | | CONFIG 3 - NONE | | | | CONFIG 4 - NONE | | | +------------------------+--------------------------------+------------------ * - Last Used Config L - Config File is Locked Auto-boot mode is enabled. Specify the server IP address (dotted decimal): [1.2.3.4] 10.10.10.99 Specify the remote modules directory: :(/u/bin/) /tftpboot/2212a Select the destination bank: (A,B): [A] a TFTP SW load modules get: /tftpboot/2212a/LML.ld from: 10.10.10.99 to: bank A. TFTP transfer of /hd0/sys0/LML.ld complete, size=6318 status: OK TFTP transfer of /hd0/sys0/os.ld complete, size=740936 status: OK TFTP transfer of /hd0/sys0/snmp.ld complete, size=243980 status: OK TFTP transfer of /hd0/sys0/sysext.ld complete, size=154409 status: OK TFTP transfer of /hd0/sys0/initblk.ld complete, size=66022 status: OK TFTP transfer of /hd0/sys0/tkflash.ld complete, size=131558 status: OK TFTP transfer of /hd0/sys0/diags.ld complete, size=228496 status: OK TFTP transfer of /hd0/sys0/router.ld complete, size=5849916 status: OK TFTP transfer of /hd0/sys0/router.ld complete, size=5849916 status: OK TFTP transfer of /hd0/sys0/nstation.ld complete, size=632700 status: OK TFTP transfer of /hd0/sys0/appn.ld complete, size=3004451 status: OK TFTP transfer of /hd0/sys0/tn3270e.ld complete, size=142874 status: OK TFTP transfer of /hd0/sys0/encrypt.ld complete, size=1867 status: OK TFTP transfer of /hd0/sys0/LMX.ld complete, size=1044 status: OK Operation completed successfully. Boot config>
Use the Service Recovery Interface (SVC>) to transfer new software onto the IBM 2212 only if you are replacing the hard drive or compact flash, or the software on both banks A and B is corrupted and you are replacing it. To use TFTP at the SVC> prompt, follow these steps:
+--------------------------------------------------------------------------------+ |svc>tftp | | | |-------BankA-------+---------- Description -------+------ Date -------+ | || IMAGE - PENDING | | 10 Feb 1998 17:46 | | || CONFIG 1 - AVAIL | | 10 Feb 1998 17:46 | | || CONFIG 2 - AVAIL | | 09 Jan 1998 10:40 | | || CONFIG 3 - AVAIL | | 06 Jan 1998 15:46 | | || CONFIG 4 - PENDING * | | 02 Jan 1998 11:51 | | |+------ BankB -------+--------- Description ----------+------ Date -------+ | || IMAGE - AVAIL | | 03 Feb 1998 14:42 | | || CONFIG 1 - AVAIL * | | 03 Feb 1998 14:43 | | || CONFIG 2 - AVAIL | | 22 Jan 1998 13:43 | | || CONFIG 3 - AVAIL | | 06 Jan 1998 17:25 | | | | CONFIG 4 - AVAIL | | 26 Jun 1998 09:48 | |+------------------------+--------------------------------+---- | |Load or Config? | |Specify the server IP Address: 1.1.1.4 | |Specify the remote directory: /u/2212/swload | |Enter destination bank : b | | | |tftping load modules... please be patient. | | | +--------------------------------------------------------------------------------+
Access the SVC> prompt. From the SVC> prompt, type zmodem and press Enter. You will be prompted to specify the bank for the image files or the bank and the config number for the configuration files that you transfer. The interface for transferring is designed so that you cannot overwrite any ACTIVE file.
For transfers via modem, each load module must be separately named and transferred individually.
Note: | When using Zmodem to transfer a multiple load module image (several files
ending in .ld), you must transfer each of the modules one by
one to get the entire load module image.
When an entire load image has transferred, the status of the bank will change from CORRUPT to AVAIL. Transfer file LML.ld first. Unless you see an information message ERROR WRITING FILE appear, assume each individual transfer has been successful. |
To update the operational code on hard drive or compact flash, from the SVC> prompt, type TFTP and press Enter to get an operational load image from a server to the IBM 2212. See TFTP File Transfer using the Operating Software for instructions on using TFTP from SVC>.
To update the operational code on system card flash:
The design of change management facilitates good control of the configuration files. Keeping the ACTIVE file and the file that is stored in the configuration database the same assures that a copy of the ACTIVE file is always available.
When you use the Send option of the Configuration Program's communications feature to send a new configuration to the IBM 2212, the new configuration is written to the ACTIVE bank and overwrites the file located in the position just below the currently ACTIVE configuration. The new configuration is PENDING if a time is set for a reset. If the configuration file is sent without a specified time for the reset to occur, it gets AVAIL status.
For example, suppose that CONFIG 2 is ACTIVE. The new configuration file is written to CONFIG 3. It has a status of PENDING if a reset time is associated with it; if not, it has a status of AVAIL.
If the file has a status of PENDING, CONFIG 2 becomes AVAIL and CONFIG 3 becomes ACTIVE when a reset occurs. The next file that is sent from the Configuration Program will be placed in CONFIG 4. If a reset time is associated with the file, it will have the PENDING status and will become ACTIVE when the next reset occurs. If another file is then sent, it is placed in CONFIG 1 because the currently ACTIVE file is now in CONFIG 4. This arrangement results in a circular queue.
If the downloaded file has a status of AVAIL, a reset does not change its status. If another file is sent down, it overwrites that file because the ACTIVE file has not changed and the newly downloaded file always occupies the location just behind the ACTIVE file.
For example, suppose that this is the view of the software that is displayed by the list command:
Boot Config> list BANK A BANK B IMAGE - ACTIVE IMAGE - AVAIL CONFIG 1 - ACTIVE CONFIG 1 - AVAIL CONFIG 2 - AVAIL CONFIG 2 - AVAIL CONFIG 3 - NONE CONFIG 3 - AVAIL CONFIG 4 - NONE CONFIG 4 - NONE
The Configuration Program sends a config file to BANK A, CONFIG 2. If you use the restart router option of the Configuration Program's communications feature, the IBM 2212 performs a reset immediately and reinitializes using the new configuration.
After these actions, the IBM 2212 configuration looks like this:
BANK A BANK B IMAGE - ACTIVE IMAGE - AVAIL CONFIG 1 - AVAIL CONFIG 1 - AVAIL CONFIG 2 - ACTIVE CONFIG 2 - AVAIL CONFIG 3 - NONE CONFIG 3 - AVAIL CONFIG 4 - NONE CONFIG 4 - NONE
CONFIG 1 has become AVAIL and CONFIG 2 has become ACTIVE.
If the Configuration Program were now used to send down a new configuration to the IBM 2212 and the file were not marked to be loaded at any specified time, the view of the software in the IBM 2212 would look like this:
BANK A BANK B IMAGE - ACTIVE IMAGE - AVAIL CONFIG 1 - AVAIL CONFIG 1 - AVAIL CONFIG 2 - ACTIVE CONFIG 2 - AVAIL CONFIG 3 - AVAIL CONFIG 3 - AVAIL CONFIG 4 - NONE CONFIG 4 - NONE
After this action, CONFIG 3 is AVAIL. The new configuration file has been loaded in this location.
Note: | You should exercise caution here because any on-board configuration changes could result in overwriting the CONFIG 3 file. Because the configuration file in CONFIG 3 was sent down without any time specified for resetting the server, it is currently not in use. It can be overwritten either when another file is sent from the Configuration Program or when a file is saved using the write command from the command line interface. You can use the copy command to move it to another location to protect it (see Copying a File Using the Copy Command) or use the lock command to keep the configuration file from being overwritten. |
Boot config> list BANK A BANK B IMAGE - ACTIVE IMAGE - AVAIL CONFIG 1 - ACTIVE CONFIG 1 - AVAIL CONFIG 2 - AVAIL CONFIG 2 - AVAIL CONFIG 3 - NONE CONFIG 3 - NONE CONFIG 4 - NONE CONFIG 4 - NONE
Each bank represents one image of the operational code. The images stored in BANK A and BANK B are stored on the hard drive or compact flash. The Configs represent the configuration files that are stored with each bank.
IMAGE refers to the status of the operational software and CONFIG refers to the status of the configuration files.
The possible IMAGE and CONFIG status:
Note: | The status of this file can be changed only by resetting the IBM 2212. If a config or an image is active, it is locked and cannot be overwritten or erased. |
Only one bank at a time contains an ACTIVE image. Only one configuration file is ACTIVE and it must be within the ACTIVE bank.
To use the Service Recovery Interface (SVC>), to view the operational software and configuration files, follow these steps: